### Text Elements

See Enabling Text Entry on page 81 and Text Editing Modes on page 83 for guidelines to enable text entry and facilitate text editing. See Access Key Input Mode (AIM) on page 123 for information about an alternate text entry method using access keys.

- <br/> tag - The <br/> tag tells the browser to add a line break to the text at the point the element is written.
- <p> tag - The <p> tag specifies a paragraph of text with alignment and line wrapping properties. All text data must be contained inside this tag. Only <do> tags, wml and card elements can exist outside the <p> tag. When rendered, this tag causes a line to be skipped.

Attribute | Value | Description | Comments
--- | --- | --- | ---
align | left right center | Aligns the paragraph. Default is “left.” | SUPPORTED.
mode | wrap nonwrap | Sets whether a paragraph wraps lines or not. | SUPPORTED.
style | property | Cascading Style Sheet Attribute. | SUPPORTED

If | align=left | align=center | align=right
--- | --- | --- | ---
mode=wrap (default) | Yes | No | No
mode=nowrap | Yes | Yes | Yes

When the mode has been set to “nowrap” then all wml tags embedded inside this <p> tag get the “nowrap” behavior. For example, if an image is embedded inside, the image is restricted to the line. The browser truncates a line on the horizontal boundary. Similarly, for any anchors and <a> tags embedded inside, the label is truncated to the line boundary and the link is restricted.

When the mode has been set to “wrap” then all elements inside the <p> tag receive the wrap behavior. Images inside will bleed vertically into the adjoining lines. <a> and <anchor> tags will also continue to the adjoining line if the labels are long.

For each tag except <img> the “mode” attribute will be set to “nowrap” if the “align” attribute is either “center” or “right”. For <img> tags the mode will not change.

Even though the “mode” attribute value might be changed, any embedded tag will inherit the original “mode” attribute value.

The alignment attribute is honored for all tags except for input tags.

The following tags are not supported but the content inside the tags is rendered as normal text:

- <table> tag - The <table> tag specifies a table. This tag is not supported.
- <td> tag - The <td> tag defines individual cell contents in each row of a defined table.
  This tag is not supported.
- <tr> tag - The <tr> tag defines each row of a defined table. This tag is not supported.